package com.pmcc.core.entity.security;

import com.pmcc.core.entity.BaseEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;
import java.util.Map;

/**
 * @program: basePlatform
 * @description: 字典实体类
 * @author: Mr.Xue
 * @create: 2020-03-25 16:28
 **/
@Data
@Entity()
@Table(name = "SYS_DICT")
public class Dict extends BaseEntity {

    @Column(name = "CODE")
    private String code;//字典编码

    @Column(name = "NAME")
    private String name;//字典名称

    @Column(name = "PARENT_ID")
    private String parentId;//字典父Id

    @Column(name = "SORT")
    private Integer sort;//排序

    @Column(name = "STATUS")
    private String status;//状态

    @Column(name = "REMARK")
    private String remark;//备注

    @Column(name = "DEL_FLAG")
    private String delFlag;//删除标记

    @Transient
    private List<Map<String,String>> detail;//保存明细用

    @Transient
    private String key;//前端用

}
